|
|
|
|
|
|
|
programming. In this section, the best that can be hoped for is a brief look at the creation process. When adding code to a DHTML page, you should understand that DHTML coding differs from standard Visual Basic code in certain ways that relate to the HTML process. The starting point for this understanding is in the ways that relate to the HTML process. The starting point for this understanding is in the way events are processed in a DHTML page. Most events in dynamic HTML are similar to the events in Visual Basic, except in the way they are named. All event names in DHTML are preceded by the word on. You can locate most common events by looking for them under this prefix. As an example, the Visual Basic Click event corresponds to the onClick event in a DHTML page. |
|
|
|
|
|
|
|
|
To see how this actually works, you will create the same HTML page as you did in the previous section; however, this time, you will use the DHTML features. Start a new application, choosing the DHTML application option in the New Project dialog. Once the project is created, you should notice that there is a new toolbox page available (see Figure 14.15) that contains the HTML style controls that you can use in the application. |
|
|
|
|
|
|
|
|
Figure 14.15.
A DHTML
project adds
a new set of
controls to the
Visual Basic
design
interface for
use on the
HTML page. |
|
|
|
|
|
|
|
|
To create the same HTML page as before, add Textbox and Command Button controls to the HTML page using the HTML controls as shown in Figure 14.16. |
|
|
|
|
|